#include<iostream>
using namespace std;
float min(float a,float b){
	return a>b?b:a;
}
float max(float a,float b){
	return a>b?a:b;
}
int main(){
	int m,n,temp;
	int mins=-1,maxs=9999999999;
	cin>>n>>m;
	for(int i=1;i<=n;i++){
		cin>>temp;
		mins=max(mins,(float)m/(temp*i)); 
		maxs=min(maxs,(float)m/((temp-1)*i));
	}
	int ans=0; 
	if(maxs==9999999999)
	cout<<"xiaogougege";
	else{
	for(int i=mins;i<=maxs;i++){
		ans++;
	}
	cout<<ans;}
	
} 
